package com.qudian.pay.notify.dingtalk;

import com.alibaba.fastjson.JSON;
import java.util.HashMap;
import java.util.Map;

/**
 * @Description: 钉钉发送结果
 * @author gaoxiang
 * @date 2017年6月8日 下午6:17:29
 */ 
public class SendResult {
	
	private boolean isSuccess;
	
	private Integer errorCode;
	
	private String errorMsg;
	
	public boolean isSuccess() {
		return isSuccess;
	}
	
	public void setIsSuccess(boolean isSuccess) {
		this.isSuccess = isSuccess;
	}
	
	public Integer getErrorCode() {
		return errorCode;
	}
	
	public void setErrorCode(Integer errorCode) {
		this.errorCode = errorCode;
	}
	
	public String getErrorMsg() {
		return errorMsg;
	}
	
	public void setErrorMsg(String errorMsg) {
		this.errorMsg = errorMsg;
	}
	
	public String toString() {
		Map<String, Object> items = new HashMap<String, Object>();
		items.put("errorCode", errorCode);
		items.put("errorMsg", errorMsg);
		items.put("isSuccess", isSuccess);
		return JSON.toJSONString(items);
	}
}
